Skip to content

Cofactor optimisation#62

Merged
jmartfrut merged 3 commits into
mainfrom
cofactor
Nov 11, 2025
Merged

Cofactor optimisation#62
jmartfrut merged 3 commits into
mainfrom
cofactor

Conversation

@miguelmaso
Copy link
Copy Markdown
Collaborator

More efficient function.

@miguelmaso miguelmaso requested a review from jmartfrut November 11, 2025 14:11
@github-actions
Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main 122b58e... main / 122b58e...
Constitutive models/Visco-elastic Ψ 0.0494 ± 0.027 ms 0.0498 ± 0.028 ms 0.991 ± 0.78
Constitutive models/Visco-elastic ∂Ψu 0.0646 ± 0.0048 ms 0.0656 ± 0.0044 ms 0.984 ± 0.099
Constitutive models/Visco-elastic ∂Ψuu 0.114 ± 0.016 ms 0.116 ± 0.016 ms 0.979 ± 0.19
Simulations/StaticMechanicalDirichlet 0.158 ± 0.011 s 0.157 ± 0.0088 s 1.01 ± 0.091
Simulations/StaticMechanicalNeumann 0.134 ± 0.015 s 0.132 ± 0.013 s 1.01 ± 0.15
Simulations/ViscoElastic 8.42 s 8.5 s 0.99
Tensor algebra/δδ_λ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
Tensor algebra/δδ_μ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
time_to_load 2.46 ± 0.0069 s 2.42 ± 0.0097 s 1.01 ± 0.005
Memory benchmarks
main 122b58e... main / 122b58e...
Constitutive models/Visco-elastic Ψ 1.25 k allocs: 0.0794 MB 1.25 k allocs: 0.0794 MB 1
Constitutive models/Visco-elastic ∂Ψu 1.37 k allocs: 0.0917 MB 1.37 k allocs: 0.0917 MB 1
Constitutive models/Visco-elastic ∂Ψuu 2.31 k allocs: 0.158 MB 2.31 k allocs: 0.158 MB 1
Simulations/StaticMechanicalDirichlet 1.7 M allocs: 0.118 GB 1.7 M allocs: 0.118 GB 1
Simulations/StaticMechanicalNeumann 1.43 M allocs: 0.0908 GB 1.43 M allocs: 0.0908 GB 1
Simulations/ViscoElastic 0.127 G allocs: 8.28 GB 0.128 G allocs: 8.32 GB 0.995
Tensor algebra/δδ_λ_2d 0 allocs: 0 B 0 allocs: 0 B
Tensor algebra/δδ_μ_2d 0 allocs: 0 B 0 allocs: 0 B
time_to_load 0.149 k allocs: 11.1 kB 0.149 k allocs: 11.1 kB 1

@jmartfrut jmartfrut merged commit 9096171 into main Nov 11, 2025
4 checks passed
@miguelmaso miguelmaso deleted the cofactor branch November 12, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants